import request from '@/utils/request'
import $qs from 'qs'
export function uploadImg(data) {
  return request({
    url: `/uploadImg`,
    method: 'post',
    data
  })
}

export function uploadListImg(params) {
  return request({
    url: `/uploadListImg`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function outUpload(params) {
  return request({
    url: `/outUpload`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function uploadFile(params) {
  return request({
    url: `/uploadFile`,
    method: 'post',
    data: $qs.stringify(params)
  })
}

export function orderInput(params) {
  return request({
    url: `/orderInput`,
    method: 'post',
    data: params
  })
}

export function liveGoodsList(params) {
  return request({
    url: `/liveGoodsList`,
    method: 'post',
    data: params
  })
}
export function auditLiveGoods(params) {
  return request({
    url: `/auditLiveGoods`,
    method: 'post',
    data: params
  })
}
export function modifyLiveGoodsSort(params) {
  return request({
    url: `/modifyLiveGoodsSort`,
    method: 'post',
    data: params
  })
}
export function getPaySet(params) {
  return request({
    url: `/getPaySet`,
    method: 'post',
    data: params
  })
}
export function savePaySet(params) {
  return request({
    url: `/savePaySet`,
    method: 'post',
    data: params
  })
}
export function getApplyList(params) {
  return request({
    url: `/getApplyList`,
    method: 'post',
    data: params
  })
}
export function deleteLiveGoods(params) {
  return request({
    url: `/deleteLiveGoods`,
    method: 'post',
    data: params
  })
}
export function resetLiveGoodsAudit(params) {
  return request({
    url: `/resetLiveGoodsAudit`,
    method: 'post',
    data: params
  })
}
export function getGoodsPreviewCode(params) {
  return request({
    url: `/getGoodsPreviewCode`,
    method: 'post',
    data: params
  })
}
export function getLiveGoodsInfo(params) {
  return request({
    url: `/getLiveGoodsInfo`,
    method: 'post',
    data: params
  })
}
export function modifySort(params) {
  return request({
    url: `/modifySort`,
    method: 'post',
    data: params
  })
}
export function applyDelete(params) {
  return request({
    url: `/applyDelete`,
    method: 'post',
    data: params
  })
}
export function checkPass(params) {
  return request({
    url: `/checkPass`,
    method: 'post',
    data: params
  })
}
export function checkRefuse(params) {
  return request({
    url: `/checkRefuse`,
    method: 'post',
    data: params
  })
}
export function getApproved(params) {
  return request({
    url: `/getApproved`,
    method: 'post',
    data: params
  })
}
export function getGoodsWareHouse(params) {
  return request({
    url: `/getGoodsWareHouse`,
    method: 'post',
    data: params
  })
}
export function liveImportGoods(params) {
  return request({
    url: `/liveImportGoods`,
    method: 'post',
    data: params
  })
}
export function getLiveRoomGoods(params) {
  return request({
    url: `/getLiveRoomGoods`,
    method: 'post',
    data: params
  })
}
export function getLiveStartCode(params) {
  return request({
    url: `/getLiveStartCode`,
    method: 'post',
    data: params
  })
}
export function getLiveInfo(params) {
  return request({
    url: `/getLiveInfo`,
    method: 'post',
    data: params
  })
}

export function updateLiveGoods(params) {
  return request({
    url: `/updateLiveGoods`,
    method: 'post',
    data: params
  })
}
export function pollingSendGoods(params) {
  return request({
    url: `/pollingSendGoods`,
    method: 'post',
    data: params
  })
}
